{extend name="public:base"}
{block name="js"}
<script>
    if (window.top !== window.self) {
        window.top.location = window.location;
    }

    function ajaxsubmit(){
        var obj = showMyLoading();
        $.post('',$('form').serialize(),function(data){
            hideMyLoading(obj);
            if (data.status == 'y') {
                window.location.href = '{:url("Index/index")}';
            } else {
                $('input[name=code]').next().click();
                layer.msg(data.info);
            }
        }, 'json');
    }

    function CheckForm(){
        if ($('input[name=password]').val().length == 0) {
            layer.msg('密码不能为空');
        }

        ajaxsubmit();

    }
</script>
{/block}
{block name="body"}
<body class="gray-bg">

<div class="lock-word animated fadeInDown">
</div>
<div class="middle-box text-center lockscreen animated fadeInDown">
    <div>
        <div class="m-b-md">
            <img alt="image" class="img-circle circle-border" src="{$manageInfo.img}" style="width:150px;height:150px;">
        </div>
        <h3>{$manageInfo.truename}</h3>
        <p>登录超时，需要再次输入密码</p>
        <form class="m-t" role="form" method="post" action=""onsubmit="CheckForm();return false;">
            <div class="form-group">
                <input type="password" class="form-control" name="password" placeholder="******" required="">
            </div>
            <button type="submit" class="btn btn-primary block full-width">登录系统</button>
        </form>
    </div>
</div>
<script src="__PUBLIC__/js/jquery.min.js"></script>
<script src="__PUBLIC__/js/bootstrap.min.js"></script>

</body>
{/block}
